package com.liang.serviceImpl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.liang.dao.OrderItemDao;
import com.liang.pojo.Gorillaceo;
import com.liang.pojo.OrderItem;
import com.liang.service.OrderItemService;
@Service
public class OrderItemServiceImpl implements OrderItemService{
	@Autowired
	OrderItemDao orderItemDao;
	public int insertOrderItem(Map<String, Object> map) {
		return orderItemDao.insertOrderItem(map);
	}

	@Override
	public List<OrderItem> selectAllOrderItemByOid(int oid) {
		return orderItemDao.selectAllOrderItemByOid(oid);
	}

	@Override
	public int deleteOrderItemByOid(Gorillaceo gorillaceo) {
		return orderItemDao.deleteOrderItemByOid(gorillaceo);
	}

	@Override
	public OrderItem selectOrderItemByOidAndSid(int oid, int sid) {
		return orderItemDao.selectOrderItemByOidAndSid(oid, sid);
	}

	@Override
	public int updateOrderItem(OrderItem orderItem) {
		return orderItemDao.updateOrderItem(orderItem);
	}
}
